<?php

class DeleteButton extends TImageButton
{
	public function onLoad($param)
	{
		parent::onLoad($param);
		$this->setCssClass("image");
		$this->Text = Prado::localize('Delete');
		$this->setAttribute('title', Prado::localize('Delete'));
		if($this->Enabled)
			$this->ImageUrl = $this->Page->Theme->BaseUrl.'/images/icons/delete.png';
		else
			$this->ImageUrl = $this->Page->Theme->BaseUrl.'/images/icons/delete_dis.png';
	}
}

?>